﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace SpaceMan.Entities.Attachments
{
    abstract class I_AttachmentWeapon : IC_ATT_Attachment
    {
        protected int ammoCount;
        protected bool readyToFire = true;
        protected float delayTimer, currentTime;
        public void Update()
        {
            currentTime -= S_Global.getTimescale();
            if (currentTime <= 0 && !readyToFire)
            {
                readyToFire = true;
            }
        }

        public abstract void Fire();
        
    }
}
